package com.work.studio.entitys;

import java.io.Serializable;

/**
 * 所有API解析的实体类基类
 */
public class BaseApiEntity<T> implements Serializable {

    /**
     * code : 00000
     * data : {"accessToken":"7_6a7dcc3f4f1e46e4b8d3d584edd0a5ca","cloudToken":"eyJBbGciOiJIUzI1NiIsIkFjY2lkIjoiOWVjZGNiZmMyY2E5NDJmYmI4MGU5MjczN2JhNTRjNDAiLCJBcHBpZCI6IjJlZTVkOWQzNWI5NjQ2NzhhYzFmMDM2YWNiMGY4YjEwIiwiVXNlcmlkIjoidGVzdG1hc3Rlck0xNTg2ODM1MDI1NzU5In0=.SjkXIn2u8k03zZmMIa2vcwWLzbT/qYEd4R+IiD/XBvc=","mCloudUserId":"testmasterM1586835025759","masterId":7,"masterName":"长春小区管理机","masterNo":"M1586835025759"}
     * message : SUCCESS
     * page : null
     */

    private boolean result = false;
    private T content;
    private String msg;
    private String code;


    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "BaseApiEntity{" +
                "result=" + result +
                ", content=" + content +
                ", msg='" + msg + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
